<?php 
	require_once('Connections/con2.php');

	if( isset($_SESSION["autenticado"]) != true){
		header("Location: /sgs/?index.php&pg=login&res=erro");
	}
	
	mysql_select_db($database_con2, $con2);
	$query_rs_div = "SELECT * FROM divisao";
	$rs_div = mysql_query($query_rs_div, $con2) or die(mysql_error());
	$row_rs_div = mysql_fetch_assoc($rs_div);
	$totalRows_rs_div = mysql_num_rows($rs_div);
?>

Divisoes Cadastradas

   <table width="984" border="0">
      <tr>
        <td>&nbsp;</td>
        <td width="170">&nbsp;</td>
      </tr>
      <tr>
        <td width="109"><div align="center"><strong>Registro</strong></div></td>
		<td><strong>Nome</strong></td>     
        <td width="417"><strong>Descricao</strong></td>   
        <td width="270"><strong>Responsavel</strong></td>             
      </tr>
    </table>

<?php 
  //$total = 0; 
  
  do { ?>
  <div id="safe-result">    
   <table width="984" border="0">
      <tr>
        <td width="60"><?php echo $row_rs_div['id']; ?></td>
		<td width="170"><?php echo $row_rs_div['nome']; ?></td>
		<td width="417"><?php echo $row_rs_div['descricao']; ?></td>  
		<td width="319"><?php echo $row_rs_div['responsavel']; ?></td>          
      </tr>      
    </table>
  </div>
<?php //$total = $total +  $row_rs_emp['total'];
  } while ($row_rs_div = mysql_fetch_assoc($rs_div));
	
  //echo 'Total: ' . $total;
?>  

<?php
	mysql_free_result($rs_div);
?>
